import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'  //引入BrowserRouter
import './index.css'
import App from './App'


const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
  //包裹根组件
  <BrowserRouter>
    <App />
  </BrowserRouter>
)


